public class ShoppingCart {
    private String name;
    private float price;
    private int gainnum;

    public ShoppingCart(String name, float price, int gainnum)
    {
        this.name = name;
        this.price = price;
        this.gainnum = gainnum;
    }
    public void setName(String name){
        this.name = name;
    }
    public String getName(){
        return name;
    }
    public void setPrice(float price){
        this.price = price;
    }
    public float getPrice(){
        return price;
    }
    public void setGainnum(String name){
        this.gainnum = gainnum;
    }
    public int getGainnum(){
        return gainnum;
    }




}
